<?php
/**
 * @package		mod_qlform
 * @copyright	Copyright (C) 2012 ql.de All rights reserved.
 * @author 		Mareike Riegel mareike.riegel@ql.de
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */
// no direct access
defined('_JEXEC') or die;
?>
<div class="qlform">
<?php
	if($emailcloak == 1) {
		echo "{emailcloak=off}"; /*very important; disabled email cloaking in email inputs!!!!*/
	}

	if(($messageType == 1 || $messageType == 3) && isset($messages)) {
		require JModuleHelper::getLayoutPath('mod_qlform', '/default_message');
	}

	if($params->get('hideform') == 0 || ($params->get('hideform') == 1 && (isset($validated) === false || (isset($validated) === true && $validated == 0)))) {
		if($showpretext == 1) {
			require JModuleHelper::getLayoutPath('mod_qlform', '/default_pretext');
		}
		require JModuleHelper::getLayoutPath('mod_qlform', 'default_form');
	}

	if($params->get('backbool') == 1 && isset($validated) === true) {
		require JModuleHelper::getLayoutPath('mod_qlform', 'default_back');
	}

	if($params->get('authorbool') == 1) {
		require JModuleHelper::getLayoutPath('mod_qlform', 'default_author');
	}
?>
</div>
